package com.wy.authority.mapper;

import com.wy.authority.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author 忘忧
 * @Date Created in 2021/1/11 13:57
 * @Description:
 */
@Mapper
@Repository
public interface RoleMapper {
    //查询
    List<Role> find();

    //删除
    int delete(int role_id);

    //增加
    int insert(Role role);

    //修改
    int update(Role role);
}
